package org.myioc.MainClass;

import org.myioc.entity.Student;
import org.myioc.util.ClassPathXmlApplicationContext;

/**
 * Created by acer on 2017/6/12.
 */
public class Main {

    public static void main(String[] args) {
//        D:\workSpace\ProjectPath\ioc\src\main\resources\ApplicationContext.xml
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("./src/main/resources/ApplicationContext.xml");

        Student student = (Student) context.getBean("Student");
        System.out.println(student);
    }
}
